#!/bin/sh
DIR=$(cd $(dirname $0) && pwd )
echo $DIR
rm -rf $DIR/build
mkdir $DIR/build
./bootstrap.sh
#./configure  --with-pic  --prefix=$(DIR)/build  --build=i686-linux --host=arm-linux-gnueabihf CC= "/opt/linux/x86-arm/arm-gnueabihf-5.4.1/bin/arm-linux-gnueabihf-gcc  "  CXX="/opt/linux/x86-arm/arm-gnueabihf-5.4.1/bin/arm-linux-gnueabihf-g++ "  --prefix=/home/libusb-1.0.22/usbtest  --enable-shared=no --enable-static=yes --disable-udev
./configure  CFLAGS="-fvisibility=hidden" --with-pic --prefix=$DIR/build --enable-shared=no --enable-static=yes --disable-udev 
make
make install
